package com.mobartisan.workinglunch.util;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.v4.content.ContextCompat;

/**
 * Created by mac on 16/6/6.
 */
public class ResourceUtils {

    public static Drawable getDrawable(Context context, int resource) {
        return ContextCompat.getDrawable(context, resource);
    }

    public static int getColor(Context context, int resource) {
        return ContextCompat.getColor(context, resource);
    }

    public static String getString(Context context, int resource) {
        return context.getString(resource);
    }
}
